package com.huse.usermanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统组织结构表
 * </p>
 *
 * @author xinxin
 * @since 2021-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysOrg对象", description="系统组织结构表")
public class SysOrg implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "上级组织编码")
    private Integer orgPid;

    @ApiModelProperty(value = "所有的父节点id")
    private String orgPids;

    @ApiModelProperty(value = "0:不是叶子节点，1:是叶子节点")
    private Integer isLeaf;

    @ApiModelProperty(value = "组织名")
    private String orgName;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "该节点子节点")
    private List<SysOrg> orgLists;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮件")
    private String email;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "组织层级")
    private Integer level;

    @ApiModelProperty(value = "0:启用,1:禁用")
    private Integer status;


}
